package com.jdd.modules.sdkidentifyresultpushlog.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @Description: 优惠券领取使用详情
 * @Author: jdd
 * @Date:   2021-03-25
 * @Version: V1.0
 */
@Data
@ApiModel(value="discount_coupon_detail对象", description="优惠券领取使用详情")
public class DiscountCouponDetail implements Serializable {
	/**主键*/
	@ApiModelProperty(value = "主键")
	private String id;

	/**优惠券ID*/
	@ApiModelProperty(value = "优惠券ID")
	private String couponId;

	/**优惠券名称*/
	@ApiModelProperty(value = "优惠券名称")
	private String couponName;

	/**类型（兼容免费券）:1普通券2免费券-同行时长限制*/
	@ApiModelProperty(value = "类型（兼容免费券）:1普通券2免费券-同行时长限制")
	private Integer couponType;

	/**模板ID*/
	@ApiModelProperty(value = "模板ID")
	private String templateId;

	/**模板名称*/
	@ApiModelProperty(value = "模板名称")
	private String templateName;

	/**商户ID*/
	@ApiModelProperty(value = "商户ID")
	private String merchantId;

	/**商家名称*/
	@ApiModelProperty(value = "商家名称")
	private String merchantName;

	/**停车场编码*/
	@ApiModelProperty(value = "停车场编码")
	private String parkCode;

	/**停车场名称*/
	@ApiModelProperty(value = "停车场名称")
	private String parkName;

	/**优惠券绑定车牌号*/
	@ApiModelProperty(value = "优惠券绑定车牌号")
	private String vehicleNum;

	/**用户id*/
	@ApiModelProperty(value = "用户id")
	private String cardcustId;

	/**获取方式1.人工发券2.自助领券*/
	@ApiModelProperty(value = "获取方式1.人工发券2.自助领券")
	private Integer obtainWay;

	/**用户手机号*/
	@ApiModelProperty(value = "用户手机号")
	private String mobile;

	/**领券用户openid*/
	@ApiModelProperty(value = "领券用户openid")
	private String openid;

	/**领券用户unionid*/
	@ApiModelProperty(value = "领券用户unionid")
	private String unionid;

	/**版本号*/
	@ApiModelProperty(value = "版本号")
	private Integer version;

	/**使用情况 1.未使用 2.已使用*/
	@ApiModelProperty(value = "使用情况 1.未使用 2.已使用")
	private Integer isUsed;

	/**使用时间*/
	@ApiModelProperty(value = "使用时间")
	private Date useTime;

	/**开始时间*/
	@ApiModelProperty(value = "开始时间")
	private Date beginTime;

	/**结束时间*/
	@ApiModelProperty(value = "结束时间")
	private Date endTime;

	/**状态（1启用，0不启用）*/
	@ApiModelProperty(value = "状态（1启用，0不启用）")
	private Integer status;

	/**0.未删除 1.已删除*/
	@ApiModelProperty(value = "0.未删除 1.已删除")
	@TableField("is_deleted")
	@TableLogic
	private Integer isDeleted;

	/**备注*/
	@ApiModelProperty(value = "备注")
	private String remark;

	/**创建时间*/
	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	/**修改时间*/
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;

	/**1.全免券 2.小时券3.折扣券4.现金券*/
	@ApiModelProperty(value = "优惠类型")
	private Integer discountType;

	/**type为2是单位是小时；type为3时99折是0.99；type是4时单位是元*/
	@ApiModelProperty(value = "优惠参数")
	private BigDecimal discountParam;

	/**是否平台券 1.平台券 2.商家券*/
	@ApiModelProperty(value = "是否平台券")
	private Integer platformFlag;

	@Override
	public String toString() {
		return JSONObject.toJSONString(this);
	}
}
